﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ES_SendMails.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.ES_SendMails" %>
<%@ Import Namespace="System.Web.Mail"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">    
    void Page_Load(object sender,EventArgs e)        
    {        
    MailMessage myMail = new MailMessage(); 
          
    myMail.To = "no_khim78@hotmail.com"; 
            
    myMail.From = "webmaster@thaicreate.com"; 
          
    myMail.Subject = "My Subject"; 
            
    myMail.BodyFormat = MailFormat.Text; 
           
    myMail.Body = "My Body & Description"; 
           
    SmtpMail.Send(myMail); 
           
    myMail = null; 
           
    this.lblText.Text = "Mail Sending."; 
        
    } 
</script> 

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>
